package com.hzit.auth.controller;


import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpSession;

/**
 * 类名：
 * 作者：WF
 * 功能：
 */
@Controller
@RequestMapping
public class AuthController {

	//1. 默认登录页面
	@GetMapping("/auth/login")
	public String login(HttpSession session,String callback_url){
		//1.1 将回调址放到session中
		session.setAttribute("callback_url",callback_url);
		return "login";
	}

}
